home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #2
/
Amiga Plus CD - 2004 - No. 02.iso
/
AmigaPlus
/
Tools
/
Development
/
AmigaTalk
/
prelude
/
Pen.p
< prev
next >
Wrap
Text File
|
2004-01-31
|
9KB
|
224 lines
pTempVar <- <primitive 110 27 >
<primitive 112 pTempVar 1 " closePlotEnv: " \
#( #[ 16r50 16r21 16rFA 16r02 16rA9 16r5B 16rB6 16rF6 16r0C 16r20 16r30 \
16r21 16r0B 16r12 16r31 16r0B 16r12 16rBD 16rF2 16r20 16rF3 \
16rF2 16r5D 16rF3 16rF5] \
#( 'PlotEnv ' ' did NOT close!' )) >
<primitive 112 pTempVar 2 " openPlotEnv: " \
#( #[ 16r21 16r0A 16r31 16r72 16r21 16r0A 16r32 16r73 16r51 16r10 16r22 \
16r23 16rFA 16r04 16rA9 16r5B 16rB6 16rF6 16r0E 16r20 16r30 \
16r10 16r0B 16r12 16r31 16r0B 16r12 16rBD 16rF2 16r5D 16rF3 \
16rF8 16r14 16rF2 16r05 16r36 16r50 16rB0 16r63 16r22 16r52 \
16rBF 16r61 16r23 16r52 16rBF 16r62 16r22 16r64 16r23 16r65 \
16r20 16rF3 16rF2 16rF5] \
#( 'openPlotEnv ' ' did NOT open!' )) >
<primitive 112 pTempVar 3 " new: " \
#( #[ 16r21 16r05 16r3A 16r81 16r00 16rF7 16r05 16r21 16rF1 16r60 16rF8 \
16r04 16rF2 16r31 16rF1 16r60 16rF2 16r05 16r36 16r50 16rB0 \
16r63 16r05 16rA0 16r61 16r05 16r64 16r62 16r32 16r64 16r05 \
16rC8 16r65 16r51 16r66 16r50 16r67 16r20 16rF3 16rF5] \
#( #isKindOf: 'Unknown Plot' 320 )) >
<primitive 112 pTempVar 4 " new " \
#( #[ 16r30 16r60 16r05 16r36 16r50 16rB0 16r63 16r05 16rA0 16r61 16r05 \
16r64 16r62 16r31 16r64 16r05 16rC8 16r65 16r51 16r66 16r50 \
16r67 16r20 16rF3 16rF5] \
#( 'Unknown Plot' 320 )) >
<primitive 112 pTempVar 5 " turn: " \
#( #[ 16r13 16r21 16rC0 16r63 16r20 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 6 " go: " \
#( #[ 16r13 16r05 16r36 16r81 16r00 16rF7 16r17 16r13 16r80 16r01 16r21 \
16rC2 16r0A 16r29 16r11 16rC0 16r72 16r13 16r80 16r02 16r21 \
16rC2 16r0A 16r29 16r12 16rC0 16rF1 16r73 16rF8 16r1A 16rF2 \
16r13 16r80 16r03 16r80 16r01 16r21 16rC2 16r0A 16r29 16r11 \
16rC0 16r72 16r13 16r80 16r03 16r80 16r02 16r21 16rC2 16r0A \
16r29 16r12 16rC0 16rF1 16r73 16rF2 16r20 16r22 16r23 16r81 \
16r04 16r81 16r05 16rF2 16r20 16rF3 16rF5] \
#( #isKindOf: #sin #cos #radians #@ #drawTo: )) >
<primitive 112 pTempVar 7 " setPens: " \
#( #[ 16r21 16r0A 16r31 16r21 16r0A 16r32 16rFA 16r02 16rB0 16rF2 16r21 \
16r0A 16r31 16r66 16r21 16r0A 16r32 16r67 16r20 16rF3 16rF5 \
] \
#( )) >
<primitive 112 pTempVar 8 " tellPens " \
#( #[ 16r16 16r17 16r81 16r00 16rF3 16r20 16rF3 16rF5] \
#( #@ )) >
<primitive 112 pTempVar 9 " center " \
#( #[ 16r20 16r14 16r52 16rBF 16r15 16r52 16rBF 16r81 16r00 16r81 16r01 \
16rF2 16r20 16rF3 16rF5] \
#( #@ #goTo: )) >
<primitive 112 pTempVar 10 " titleIs " \
#( #[ 16r10 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 11 " location " \
#( #[ 16r11 16r12 16r81 16r00 16rF3 16rF5] \
#( #@ )) >
<primitive 112 pTempVar 12 " extent " \
#( #[ 16r14 16r15 16r81 16r00 16rF3 16rF5] \
#( #@ )) >
<primitive 112 pTempVar 13 " erase " \
#( #[ 16rFA 16r00 16rAA 16rF2 16r20 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 14 " direction: " \
#( #[ 16r21 16r63 16r20 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 15 " direction " \
#( #[ 16r13 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 16 " drawPoint: " \
#( #[ 16r21 16r0A 16r31 16r21 16r0A 16r32 16rFA 16r02 16rAD 16rF2 16r21 \
16r0A 16r31 16r61 16r21 16r0A 16r32 16r62 16r20 16rF3 16rF5 \
] \
#( )) >
<primitive 112 pTempVar 17 " drawLine:to: " \
#( #[ 16r21 16r0A 16r31 16r21 16r0A 16r32 16r22 16r0A 16r31 16r22 16r0A \
16r32 16rFA 16r04 16rB1 16rF2 16r22 16r0A 16r31 16r61 16r22 \
16r0A 16r32 16r62 16r20 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 18 " goTo: " \
#( #[ 16r21 16r0A 16r31 16r21 16r0A 16r32 16rFA 16r02 16rAB 16rF2 16r21 \
16r0A 16r31 16r61 16r21 16r0A 16r32 16r62 16r20 16rF3 16rF5 \
] \
#( )) >
<primitive 112 pTempVar 19 " drawTo: " \
#( #[ 16r21 16r0A 16r31 16r21 16r0A 16r32 16rFA 16r02 16rAC 16rF2 16r21 \
16r0A 16r31 16r61 16r21 16r0A 16r32 16r62 16r20 16rF3 16rF5 \
] \
#( )) >
<primitive 112 pTempVar 20 " drawArcAt:around:for: " \
#( #[ 16r23 16r05 16r36 16r81 16r00 16rF7 16r12 16r21 16r0A 16r31 16r21 \
16r0A 16r32 16r23 16r0A 16r10 16r22 16r0A 16r31 16r22 16r0A \
16r32 16rFA 16r05 16rA8 16rF2 16r20 16rF3 16rF5] \
#( #isKindOf: )) >
<primitive 112 pTempVar 21 " drawArcAround:for: " \
#( #[ 16r22 16r05 16r36 16r81 16r00 16rF7 16r0E 16r11 16r12 16r22 16r0A \
16r10 16r21 16r0A 16r31 16r21 16r0A 16r32 16rFA 16r05 16rA8 \
16rF2 16r20 16rF3 16rF5] \
#( #isKindOf: )) >
<primitive 112 pTempVar 22 " circleRadius: " \
#( #[ 16r11 16r12 16r21 16rFA 16r03 16rAE 16rF2 16r20 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 23 " drawCircleAt:radius: " \
#( #[ 16r21 16r0A 16r31 16r21 16r0A 16r32 16r22 16rFA 16r03 16rAE 16rF2 \
16r21 16r0A 16r31 16r61 16r21 16r0A 16r32 16r62 16r20 16rF3 \
16rF5] \
#( )) >
<primitive 112 pTempVar 24 " drawBox:to: " \
#( #[ 16r21 16r0A 16r31 16r21 16r0A 16r32 16r22 16r0A 16r31 16r22 16r0A \
16r32 16rFA 16r04 16rAF 16rF2 16r22 16r0A 16r31 16r61 16r22 \
16r0A 16r32 16r62 16r20 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 25 " drawText:at: " \
#( #[ 16r21 16r22 16r0A 16r31 16r22 16r0A 16r32 16r16 16r17 16rFA 16r05 \
16rB2 16rF2 16r22 16r0A 16r31 16r61 16r22 16r0A 16r32 16r62 \
16r20 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 26 " setLineType: " \
#( #[ 16r21 16rFA 16r01 16rB3 16rF2 16r20 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 27 " movePlotEnvBy: " \
#( #[ 16r52 16r10 16r21 16r0A 16r31 16r21 16r0A 16r32 16rFA 16r04 16rA9 \
16rF2 16r20 16rF3 16rF5] \
#( )) >
<primitive 98 #Pen \
<primitive 97 #Pen #Object #AmigaTalk:General/Pen.st \
#( #title #x #y #angle #width #height #fpen #bpen ) \
#( #closePlotEnv: #openPlotEnv: #new: #new #turn: #go: #setPens: \
#tellPens #center #titleIs #location #extent #erase #direction: #direction \
#drawPoint: #drawLine:to: #goTo: #drawTo: #drawArcAt:around:for: \
#drawArcAround:for: #circleRadius: #drawCircleAt:radius: #drawBox:to: #drawText:at: \
#setLineType: #movePlotEnvBy: ) \
pTempVar 4 10 > #ordinary >
pTempVar <- <primitive 110 3 >
<primitive 112 pTempVar 1 " with:displayAt: " \
#( #[ 16r22 16r0A 16r31 16r73 16r22 16r0A 16r32 16r74 16r10 16rE1 16r07 \
16r2A 16r27 16r0A 16r31 16r75 16r27 16r0A 16r32 16r76 16r21 \
16r25 16r0A 16r31 16r23 16rC0 16r25 16r0A 16r32 16r24 16rC0 \
16r81 16r00 16r81 16r01 16rF2 16r21 16r26 16r0A 16r31 16r23 \
16rC0 16r26 16r0A 16r32 16r24 16rC0 16r81 16r00 16r81 16r02 \
16rF2 16r5D 16rF3 16rB3 16rF2 16r20 16rF3 16rF5] \
#( #@ #goTo: #drawTo: )) >
<primitive 112 pTempVar 2 " add:to: " \
#( #[ 16r10 16r05 16r35 16rA0 16rF1 16r21 16r0B 16r33 16rF2 16rF1 16r22 \
16r0B 16r34 16rF2 16rBE 16rF2 16r20 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 3 " new " \
#( #[ 16r05 16r20 16rA0 16r60 16rF5] \
#( )) >
<primitive 98 #FormPen \
<primitive 97 #FormPen #Pen #AmigaTalk:General/Pen.st \
#( #lines ) \
#( #with:displayAt: #add:to: #new ) \
pTempVar 8 9 > #ordinary >
pTempVar <- <primitive 110 2 >
<primitive 112 pTempVar 1 " goTo: " \
#( #[ 16r20 16r21 16r91 16r00 16rF2 16r10 16r20 16r80 16r01 16r21 16r82 \
16r02 16rF2 16r20 16r21 16r91 16r00 16rF2 16r20 16rF3 16rF5 \
] \
#( #goTo: #location #add:to: )) >
<primitive 112 pTempVar 2 " setForm: " \
#( #[ 16r21 16r60 16r20 16rF3 16rF5] \
#( )) >
<primitive 98 #SavePen \
<primitive 97 #SavePen #FormPen #AmigaTalk:General/Pen.st \
#( #saveForm ) \
#( #goTo: #setForm: ) \
pTempVar 2 6 > #ordinary >
pTempVar <- <primitive 110 3 >
<primitive 112 pTempVar 1 " spiral:angle: " \
#( #[ 16r51 16r21 16rB2 16rE1 16r03 16r0A 16r10 16r23 16r81 16r00 16rF2 \
16r10 16r22 16r81 16r01 16rF3 16rB3 16rF2 16r20 16rF3 16rF5 \
] \
#( #go: #turn: )) >
<primitive 112 pTempVar 2 " poly:length: " \
#( #[ 16r21 16rE0 16r0C 16r10 16r22 16r81 16r00 16rF2 16r10 16r31 16r21 \
16rBF 16r81 16r02 16rF3 16rB8 16rF2 16r20 16rF3 16rF5] \
#( #go: 6.2831853 #turn: )) >
<primitive 112 pTempVar 3 " withPen: " \
#( #[ 16r21 16r60 16r20 16rF3 16rF5] \
#( )) >
<primitive 98 #ShowPen \
<primitive 97 #ShowPen #Object #AmigaTalk:General/Pen.st \
#( #bic ) \
#( #spiral:angle: #poly:length: #withPen: ) \
pTempVar 4 7 > #ordinary >